package my.headfirstjava.strategy.v3;

import my.headfirstjava.strategy.v3.behavior.FlayNoWy;
import my.headfirstjava.strategy.v3.behavior.Squeak;

/**
 * 模型鸭
 * 特点:会游泳，不会叫
 */
public class ModelDuck extends Duck   {

	public ModelDuck(){
		flyBehavior =new FlayNoWy();
		quackBehavior = new Squeak();
	}



	public void display() {
		System.out.println("I'm a model duck");
	}

}
